package cn.edu.sdjzu.xg23.kcsj01_backend.entity.authority;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleAssPermission {
    private static Long nextId = 1L;

    private Long id;
    private Role role;
    private Permission permission;

    {
        this.id = nextId;
        nextId++;
    }
}
